package com.letoken.platform.repo.app.req.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @version 1.0
 * @author： Christopher
 * @date： 2022/1/6 16:49
 */
@Data
@ApiModel(value = "更改用户名请求类", description = "更改用户名请求类")
public class UpdateUserNameReq {

    @ApiModelProperty(name = "userName", value = "用户名", required = true, example = "五五开")
    @NotBlank(message = "80201001")
    @Length(min = 1,max = 15,message = "80201016")
    private String userName;

}
